<?php
/* @var $this SiteController */
/* @var $model ContactForm */
/* @var $form CActiveForm */

$this->pageTitle=Yii::app()->name . ' - Homepage';
?>

<h1>Add Content</h1>

<p>
add content and choose a related category
</p>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'addwords-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'words'); ?>
		<?php echo $form->textArea($model,'words'); ?>
		<?php echo $form->error($model,'words'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'Category'); ?>
		<?php echo $form->dropDownList($model,'categoryId',array()); ?>
		<?php echo $form->error($model,'categoryId'); ?>
	</div>


	<div class="row buttons">
		<?php echo CHtml::submitButton('Submit'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->